<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<?php print $scripts; ?>
<!--[if IE 6]>
<?php print phptemplate_get_ie_six_styles(); ?>
<![endif]-->
<!--[if IE 7]>
<?php print phptemplate_get_ie_seven_styles(); ?>
<![endif]-->
<!--[if IE 8]>
<?php print phptemplate_get_ie_eight_styles(); ?>
<![endif]-->
<?php print phptemplate_get_special_styles(); ?>
</head>

<body class="<?php print $body_classes; ?>">

<div id="site-header">
  <div class="container container-24">
    <div class="grid-24" id="region-header">
      <?php print $site_header;?>
    </div>
  </div>
</div>
  
<!-- Top -->
<div class="white-bg">
  <div class="container container-24">
    <div class="grid-24" id="region-top">
      <?php print $linked_logo_img;?>
      <?php print $top; ?>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!-- End Of Top -->

<!-- Main Menu -->
<div class="main-menu-bg">
  <div class="container container-24">
    <div class="grid-24" id="region-main-menu">
      <?php print $main_menu; ?>
      <div class="clear"></div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<!-- End Of Main menu -->

<!-- Secondary Menu -->
<div class="Secondary-menu-bg">
  <div class="container container-24">
    <div class="grid-18" id="region-secondary-menu">
      <?php print $secondary_menu; ?>
    </div>
    <div class="grid-6" id="current-cart-count">
      <?php print theme('block_cart_icon');?>
    </div>
  </div>
  <div class="clear"></div>
</div>
<!-- End Of Secondary menu -->
<?php
// testing ns here:
//  $content = 123;
//  $content_right = 456;
?>
<div class="container container-24">
  <?php if ($messages): ?><h2 class="page-messages"><?php print $messages; ?></h2><?php endif; ?>
</div>
<!-- Middle -->
<div class="container container-24">
  <div class="white-bg middle-content">
    <div class="grid-6" id="region-content-left">
      <?php print $content_left; ?>
      <div class="clear"></div>
    </div>
    <div class="<?php print ns('grid-24', $content_left, 6, $content_right, 6); ?>" id="region-content">
      <?php if (!empty($page_title)): ?><h2 class="page-title"><?php print $page_title; ?></h2><?php endif; ?>
        <div class="grid-24" id="region-info">
        <?php if ($tabs): ?><h2 class="page-tabs"><?php print $tabs; ?></h2><?php endif; ?>
        </div>
      <?php print $content_top; ?>
      <?php print $content; ?>
      <div class="clear"></div>
    </div>
    <div class="grid-6" id="region-content-right">
      <?php print $content_right; ?>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <div class="grid-24" id="region-content-bottom">
      <?php print $content_bottom;?>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!-- End Of Middle -->

<!-- Bottom -->
<div class="container container-24">
  <div class="gray-bg bottom-content">
    <div class="grid-24" id="region-bottom">
      <?php print $bottom;?>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!-- End Of Bottom -->

<div id="site-footer">
  <?php print $site_footer;?>
</div>

<?php print $closure; ?>
</body>
</html>
